package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class ContractAudit {
    public static final Integer CON_AUDIT_STATE_UNAPPROVED = 0;        // 合同未审核
    public static final Integer CON_AUDIT_STATE_APPROVED = 1;          // 合同审核通过
    public static final Integer CON_AUDIT_STATE_REJECT = 2;            // 合同审核不通过

    /** */
    private Long id;

    /** */
    private Long contractId;
    private Contract contract;

    /** */
    private Long instanceId;

    /** */
    private String creator;

    /** */
    private Long auditorId;

    /** */
    private Integer bpmninfoId;

    /** */
    private String info;

    /** */
    private Integer status = CON_AUDIT_STATE_UNAPPROVED;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date auditTime;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
}